package day06;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class P07AAddBRobust {
    static Scanner cin = null;

    static {//static 类的静态块 在所有方法之前执行一次
        try {
            cin = new Scanner(new File("A.txt"));
        } catch (IOException e) {
            cin = new Scanner(System.in);

        }

    }

    public static void main(String[] args) {
        File file;
        while (cin.hasNext()) {
            int a = cin.nextInt();
            int b = cin.nextInt();
            System.out.println(a + b);
        }
        cin.close();
    }
}
